package com.yuyou.fn.portal.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Document
public class CourseDisplayConfig implements Serializable {

    public static class Period implements Serializable {

        private Long periodId ;

        private String periodName ;

        private List<Long> gradeIds ;

        private List<Long> campusIds ;

        public Long getPeriodId() {
            return periodId;
        }

        public void setPeriodId(Long periodId) {
            this.periodId = periodId;
        }

        public String getPeriodName() {
            return periodName;
        }

        public void setPeriodName(String periodName) {
            this.periodName = periodName;
        }

        public List<Long> getGradeIds() {
            return gradeIds;
        }

        public void setGradeIds(List<Long> gradeIds) {
            this.gradeIds = gradeIds;
        }

        public List<Long> getCampusIds() {
            return campusIds;
        }

        public void setCampusIds(List<Long> campusIds) {
            this.campusIds = campusIds;
        }
    }

    @NotNull
    @Id
    private Long areaTeamId ;

    private String areaTeamName ;

    private List<Period> periods ;

    private Date createDate ;

    private Date updateDate ;

    private Long creatorId ;

    private String creatorName ;

    private Long modifierId ;

    private String  modifierName ;

    public Long getAreaTeamId() {
        return areaTeamId;
    }

    public void setAreaTeamId(Long areaTeamId) {
        this.areaTeamId = areaTeamId;
    }

    public String getAreaTeamName() {
        return areaTeamName;
    }

    public void setAreaTeamName(String areaTeamName) {
        this.areaTeamName = areaTeamName;
    }

    public List<Period> getPeriods() {
        return periods;
    }

    public void setPeriods(List<Period> periods) {
        this.periods = periods;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Long getModifierId() {
        return modifierId;
    }

    public void setModifierId(Long modifierId) {
        this.modifierId = modifierId;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }
}
